FROM python:3.9

ENV TZ=Asia/Shanghai
ENV DEBIAN_FRONTEND=noninteractive

ARG TARGETARCH

RUN wget https://github.com/stern/stern/releases/download/v1.25.0/stern_1.25.0_linux_${TARGETARCH}.tar.gz && tar -zxvf stern_1.25.0_linux_${TARGETARCH}.tar.gz && rm stern_1.25.0_linux_${TARGETARCH}.tar.gz && chmod +x stern &&  mv stern /usr/bin/stern

RUN /usr/local/bin/python -m pip install --upgrade pip

RUN pip install kubernetes==25.3.0 pysnooper psutil requests numpy  pyinstaller argparse
COPY job/pytorch/ /app/
COPY job/pkgs /app/job/pkgs
WORKDIR /app
ENV PYTHONPATH=/app:${PYTHONPATH:-}

ENTRYPOINT ["python3", "launcher.py"]




